Optimal. Leaf size=704 \[ -\frac {(c e-2 b f-2 c f x) \sqrt {a+b x+c x^2}}{f \left (e^2-4 d f\right )}-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )}+\frac {c^{3/2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{f^2}-\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e-\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \tanh ^{-1}\left (\frac {4 a f-b \left (e-\sqrt {e^2-4 d f}\right )+2 \left (b f-c \left (e-\sqrt {e^2-4 d f}\right )\right ) x}{2 \sqrt {2} \sqrt {c e^2-2 c d f-b e f+2 a f^2-(c e-b f) \sqrt {e^2-4 d f}} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {2} f^2 \left (e^2-4 d f\right )^{3/2} \sqrt {c e^2-2 c d f-b e f+2 a f^2-(c e-b f) \sqrt {e^2-4 d f}}}+\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e+\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \tanh ^{-1}\left (\frac {4 a f-b \left (e+\sqrt {e^2-4 d f}\right )+2 \left (b f-c \left (e+\sqrt {e^2-4 d f}\right )\right ) x}{2 \sqrt {2} \sqrt {c e^2-2 c d f-b e f+2 a f^2+(c e-b f) \sqrt {e^2-4 d f}} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {2} f^2 \left (e^2-4 d f\right )^{3/2} \sqrt {c e^2-2 c d f-b e f+2 a f^2+(c e-b f) \sqrt {e^2-4 d f}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 7.55, antiderivative size = 704, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {985, 1080,
1090, 635, 212, 1046, 738} \begin {gather*} -\frac {\left (\left (e-\sqrt {e^2-4 d f}\right ) (c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right )-2 f \left (f \left (-b e (3 a f+c d)+4 a f (a f+c d)+2 b^2 d f\right )+2 c^2 d \left (e^2-4 d f\right )\right )\right ) \tanh ^{-1}\left (\frac {4 a f+2 x \left (b f-c \left (e-\sqrt {e^2-4 d f}\right )\right )-b \left (e-\sqrt {e^2-4 d f}\right )}{2 \sqrt {2} \sqrt {a+b x+c x^2} \sqrt {2 a f^2-\sqrt {e^2-4 d f} (c e-b f)-b e f-2 c d f+c e^2}}\right )}{2 \sqrt {2} f^2 \left (e^2-4 d f\right )^{3/2} \sqrt {2 a f^2-\sqrt {e^2-4 d f} (c e-b f)-b e f-2 c d f+c e^2}}+\frac {\left (\left (\sqrt {e^2-4 d f}+e\right ) (c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right )-2 f \left (f \left (-b e (3 a f+c d)+4 a f (a f+c d)+2 b^2 d f\right )+2 c^2 d \left (e^2-4 d f\right )\right )\right ) \tanh ^{-1}\left (\frac {4 a f+2 x \left (b f-c \left (\sqrt {e^2-4 d f}+e\right )\right )-b \left (\sqrt {e^2-4 d f}+e\right )}{2 \sqrt {2} \sqrt {a+b x+c x^2} \sqrt {2 a f^2+\sqrt {e^2-4 d f} (c e-b f)-b e f-2 c d f+c e^2}}\right )}{2 \sqrt {2} f^2 \left (e^2-4 d f\right )^{3/2} \sqrt {2 a f^2+\sqrt {e^2-4 d f} (c e-b f)-b e f-2 c d f+c e^2}}+\frac {c^{3/2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{f^2}-\frac {\sqrt {a+b x+c x^2} (-2 b f+c e-2 c f x)}{f \left (e^2-4 d f\right )}-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 985
Rule 1046
Rule 1080
Rule 1090
Rubi steps
\begin {align*} \int \frac {\left (a+b x+c x^2\right )^{3/2}}{\left (d+e x+f x^2\right )^2} \, dx &=-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )}-\frac {\int \frac {\sqrt {a+b x+c x^2} \left (\frac {1}{2} (3 b e-4 a f)+(3 c e+b f) x+4 c f x^2\right )}{d+e x+f x^2} \, dx}{-e^2+4 d f}\\ &=-\frac {(c e-2 b f-2 c f x) \sqrt {a+b x+c x^2}}{f \left (e^2-4 d f\right )}-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )}-\frac {\int \frac {c f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )-c f \left (2 c^2 d e+2 a c e f+b f (b e-2 a f)+b c \left (e^2-10 d f\right )\right ) x-2 c^3 f \left (e^2-4 d f\right ) x^2}{\sqrt {a+b x+c x^2} \left (d+e x+f x^2\right )} \, dx}{2 c f^2 \left (e^2-4 d f\right )}\\ &=-\frac {(c e-2 b f-2 c f x) \sqrt {a+b x+c x^2}}{f \left (e^2-4 d f\right )}-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )}+\frac {c^2 \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{f^2}-\frac {\int \frac {2 c^3 d f \left (e^2-4 d f\right )+c f^2 \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )+\left (2 c^3 e f \left (e^2-4 d f\right )-c f^2 \left (2 c^2 d e+2 a c e f+b f (b e-2 a f)+b c \left (e^2-10 d f\right )\right )\right ) x}{\sqrt {a+b x+c x^2} \left (d+e x+f x^2\right )} \, dx}{2 c f^3 \left (e^2-4 d f\right )}\\ &=-\frac {(c e-2 b f-2 c f x) \sqrt {a+b x+c x^2}}{f \left (e^2-4 d f\right )}-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )}+\frac {\left (2 c^2\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{f^2}+\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e-\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \int \frac {1}{\left (e-\sqrt {e^2-4 d f}+2 f x\right ) \sqrt {a+b x+c x^2}} \, dx}{2 f^2 \left (e^2-4 d f\right )^{3/2}}-\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e+\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \int \frac {1}{\left (e+\sqrt {e^2-4 d f}+2 f x\right ) \sqrt {a+b x+c x^2}} \, dx}{2 f^2 \left (e^2-4 d f\right )^{3/2}}\\ &=-\frac {(c e-2 b f-2 c f x) \sqrt {a+b x+c x^2}}{f \left (e^2-4 d f\right )}-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )}+\frac {c^{3/2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{f^2}-\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e-\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \text {Subst}\left (\int \frac {1}{16 a f^2-8 b f \left (e-\sqrt {e^2-4 d f}\right )+4 c \left (e-\sqrt {e^2-4 d f}\right )^2-x^2} \, dx,x,\frac {4 a f-b \left (e-\sqrt {e^2-4 d f}\right )-\left (-2 b f+2 c \left (e-\sqrt {e^2-4 d f}\right )\right ) x}{\sqrt {a+b x+c x^2}}\right )}{f^2 \left (e^2-4 d f\right )^{3/2}}+\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e+\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \text {Subst}\left (\int \frac {1}{16 a f^2-8 b f \left (e+\sqrt {e^2-4 d f}\right )+4 c \left (e+\sqrt {e^2-4 d f}\right )^2-x^2} \, dx,x,\frac {4 a f-b \left (e+\sqrt {e^2-4 d f}\right )-\left (-2 b f+2 c \left (e+\sqrt {e^2-4 d f}\right )\right ) x}{\sqrt {a+b x+c x^2}}\right )}{f^2 \left (e^2-4 d f\right )^{3/2}}\\ &=-\frac {(c e-2 b f-2 c f x) \sqrt {a+b x+c x^2}}{f \left (e^2-4 d f\right )}-\frac {(e+2 f x) \left (a+b x+c x^2\right )^{3/2}}{\left (e^2-4 d f\right ) \left (d+e x+f x^2\right )}+\frac {c^{3/2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{f^2}-\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e-\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \tanh ^{-1}\left (\frac {4 a f-b \left (e-\sqrt {e^2-4 d f}\right )+2 \left (b f-c \left (e-\sqrt {e^2-4 d f}\right )\right ) x}{2 \sqrt {2} \sqrt {c e^2-2 c d f-b e f+2 a f^2-(c e-b f) \sqrt {e^2-4 d f}} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {2} f^2 \left (e^2-4 d f\right )^{3/2} \sqrt {c e^2-2 c d f-b e f+2 a f^2-(c e-b f) \sqrt {e^2-4 d f}}}+\frac {\left ((c e-b f) \left (f (b e-2 a f)+2 c \left (e^2-5 d f\right )\right ) \left (e+\sqrt {e^2-4 d f}\right )-2 f \left (2 c^2 d \left (e^2-4 d f\right )+f \left (2 b^2 d f+4 a f (c d+a f)-b e (c d+3 a f)\right )\right )\right ) \tanh ^{-1}\left (\frac {4 a f-b \left (e+\sqrt {e^2-4 d f}\right )+2 \left (b f-c \left (e+\sqrt {e^2-4 d f}\right )\right ) x}{2 \sqrt {2} \sqrt {c e^2-2 c d f-b e f+2 a f^2+(c e-b f) \sqrt {e^2-4 d f}} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {2} f^2 \left (e^2-4 d f\right )^{3/2} \sqrt {c e^2-2 c d f-b e f+2 a f^2+(c e-b f) \sqrt {e^2-4 d f}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 3.79, size = 2416, normalized size = 3.43 \begin {gather*} \text {Result too large to show} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(7855\) vs.
\(2(640)=1280\).
time = 0.16, size = 7856, normalized size = 11.16
method | result | size |
default | \(\text {Expression too large to display}\) | \(7856\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c\,x^2+b\,x+a\right )}^{3/2}}{{\left (f\,x^2+e\,x+d\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________